package com.weic.visitor;

public class VisitorOne implements Visitor{
    @Override
    public void visit(ElementA elementA) {
        System.out.println("visitorOne visit ElementA --->"+elementA.operationA());
    }

    @Override
    public void visit(ElementB elementB) {
        System.out.println("visitorOne visit ElementA --->"+ elementB.operationB());
    }
}
